package cn.kgc.service;

import cn.kgc.pojo.NewsDetail;
import cn.kgc.util.PageSupport;

import java.util.List;

public interface NewsDetailService {

    public List<NewsDetail> getAllNewsDetail();

    public int addNews(NewsDetail newsDetail);

    public PageSupport<NewsDetail> getNewsDetailListByPage(String title,Integer categoryId,PageSupport pageSupport);

    public NewsDetail getNewsDetailById(Integer id);

    public boolean updateNews(NewsDetail newsDetail);

    public boolean deleteNews(Integer id);

}
